
import httpRequest from '@/utils/httpRequest'
import constant from '../constant'

export function pageData (data) {
  return httpRequest({
    url: constant.DR + '/rule/conditionDivisor/page',
    method: 'post',
    data: data
  })
}
export function updateData (data) {
  return httpRequest({
    url: constant.DR + '/rule/conditionDivisor/update',
    method: 'post',
    data: data
  })
}
export function listConditionDivisorData (data) {
  return httpRequest({
    url: constant.DR + '/rule/conditionDivisor/list',
    method: 'post',
    data: data
  })
}
export function getData (data) {
  return httpRequest({
    url: constant.DR + '/rule/conditionDivisor/get',
    method: 'post',
    data: data
  })
}
export function saveData (data) {
  return httpRequest({
    url: constant.DR + '/rule/conditionDivisor/save',
    method: 'post',
    data: data
  })
}
// 公式因子
export function formulaList (data) {
  return httpRequest({
    url: constant.DR + '/rule/formula/page',
    method: 'post',
    data: data
  })
}
export function editFormula (data) {
  return httpRequest({
    url: constant.DR + '/rule/formula/editFormula',
    method: 'post',
    data: data
  })
}
export function deleteFormula (data) {
  return httpRequest({
    url: constant.DR + '/rule/formula/deleteFormula',
    method: 'post',
    data: data
  })
}
export function getQualty (data) {
  return httpRequest({
    url: constant.DR + '/rule/entity/get',
    method: 'post',
    data: data
  })
}
// 根据公式因子查询公式表达式
export function getFormula (data) {
  return httpRequest({
    url: constant.DR + '/rule/formula/getFormula',
    method: 'post',
    data: data
  })
}
// 查询方法参数枚举值
export function getEnum (data) {
  return httpRequest({
    url: constant.DR + '/rule/conditionDivisor/getEnum',
    method: 'post',
    data: data
  })
}
